package com.pzhu.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.pzhu.model.help.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 订单表
 * @TableName hs_order
 */
@TableName(value ="hs_order")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Order extends BaseEntity implements Serializable {

    /**
     * 订单号
     */
    @TableField(value = "code")
    private String code;

    /**
     * 服务开始时间
     */
    @TableField(value = "start_time")
    private Date startTime;

    /**
     * 服务结束时间
     */
    @TableField(value = "end_time")
    private Date endTime;

    /**
     * 套餐ID
     */
    @TableField(value = "thali_id")
    private Long thaliId;

    /**
     * 服务人员ID
     */
    @TableField(value = "staff_id")
    private Long staffId;

    /**
     * 客户ID
     */
    @TableField(value = "customer_id")
    private Long customerId;

    /**
     * 规格ID
     */
    @TableField(value = "specs_id")
    private Long specsId;

    /**
     * 总价格
     */
    @TableField(value = "total_amount")
    private BigDecimal totalAmount;

    /**
     * 姓名
     */
    @TableField(value = "username")
    private String username;

    /**
     * 工作人员姓名
     */
    @TableField(value = "staff_name")
    private String staffName;

    /**
     * 套餐名字
     */
    @TableField(value = "thali_name")
    private String thaliName;

    /**
     * 电话
     */
    @TableField(value = "phone")
    private String phone;

    /**
     * 地址信息
     */
    @TableField(value = "address")
    private String address;

    /**
     * 面积
     */
    @TableField(value = "area")
    private Integer area;

    /**
     * 规格
     */
    @TableField(value = "specs")
    private String specs;

    /**
     * 核销二维码地址
     */
    @TableField(value = "code_url")
    private String codeUrl;

    /**
     * 服务备注
     */
    @TableField(value = "mark")
    private String mark;

    /**
     * 订单状态（1-可使用 2-已核销 3-已过期 4-系统取消）
     */
    @TableField(value = "status")
    private Integer status;

    @TableField(exist = false)
    private Integer month;

    @TableField(exist = false)
    private BigDecimal sum;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}